package com.ruoyi.system.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 医生对象 docker
 * 
 * @author ruoyi
 * @date 2024-02-26
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Docker extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 医生id */
    private Long id;

    /** 医生姓名 */
    @Excel(name = "医生姓名")
    private String name;

    /** 医生年龄 */
    @Excel(name = "医生年龄")
    private Long age;

    /** 性别,0男1女 */
    @Excel(name = "性别,0男1女")
    private Long sex;

    /** 照片 */
    @Excel(name = "照片")
    private String img;

    /** 职位id */
    @Excel(name = "职位id")
    private Long positionId;

    /** 科室id */
    @Excel(name = "科室id")
    private Long departmentId;

    /** 擅长 */
    @Excel(name = "擅长")
    private String proficientIn;

    /** 简介 */
    @Excel(name = "简介")
    private String introduce;

    /** 删除状态，0未，1删除 */
    @Excel(name = "删除状态，0未，1删除")
    private Long del;

    //科室
    private Department department;

    //职位
    private Position position;

    //疾病名字集合
    List<String> DisNames;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("age", getAge())
            .append("sex", getSex())
            .append("img", getImg())
            .append("positionId", getPositionId())
            .append("departmentId", getDepartmentId())
            .append("proficientIn", getProficientIn())
            .append("introduce", getIntroduce())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("del", getDel())
            .toString();
    }
}
